Repository navigation
selectors: coordinate name attributes and nested sibling previews - #577
Merged
Martin Aeschlimann (aeschli) merged 5 commits intoNov 24, 2026
Merged
Conversation
… with `&`
When a parent selector contains `+` or `~` and a nested rule references
it with `&` (e.g. `.foo + .bar { .baz & {} }`), the hover preview left
`.foo` at the top level and only moved `.bar` under `.baz`.
- processSelector now moves the whole parent context out of the root
- cloneWithParent also clones preceding siblings on the path
- clone keeps LabelElement so `⋮` still prints as a label
Fixes microsoft/vscode#169900
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Preserve the original contribution for coordinated selector-hover integration. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Federico Brancasi (federicobrancasi)
approved these changes
Nov 23, 2026
Federico Brancasi (federicobrancasi)
approved these changes
Nov 24, 2026
Benjamin Christopher Simmonds (benibenj)
approved these changes
Nov 24, 2026
Martin Aeschlimann (aeschli)
deleted the
aeschli/combine-selector-hover-fixes
branch
November 24, 2026 09:33
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Combine #545 by Xnerv Wang (@xnervwang) and #546 by Usman Tahir Qureshi (@UsmanQT) while preserving both original commits and authorship.
[name]attributes in selector hover previews without treating them as element names.&.LabelElement.clone()now readsELEMENT_NAME, matching the storage introduced by Fix name attributes in CSS selector hovers #545, rather than the oldnamekey. This prevents literalnullfrom replacing the⋮and…placeholders.[name]attributes and sibling combinators, and cloned descendant placeholders.History and merging
Both original PR heads are ancestors of this branch, unchanged:
5b3751b8c585bc59979c58672f2b5ef70f0a7a51Ȣ:c502ce26b86557309108be0d34ec993373ccc80eThe two new integration merge commits are cryptographically signed. Please merge this PR using a merge commit, not squash or rebase, to preserve contributor commits and authorship. This is a combined integration PR, not an exact-head mirror. Neither original PR was modified or closed.
Validation
npm run compile: passed, including all 7 lint checks.Related: #545, #546.